package org.luckyjourney.entity.booking.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookingDTO implements Serializable {
    @ApiModelProperty("用户编号")
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty("页码数")
    private Integer page;

    @ApiModelProperty("每页条数")
    private Integer pageSize;

    @ApiModelProperty("发布日期日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("用户id")
    private Long regularId;

    @ApiModelProperty("1(待核销)2已完成")
    private Integer bookingStatus;

    @ApiModelProperty("1(待核销)2已完成")
    private Long ordersStatus;
}
